Platform Explorer / Nuxeo Platform LTS 2016 8.10

Contribution org.nuxeo.ecm.platform.task.lifecycle--lifecycle

This contribution is part of XML component org.nuxeo.ecm.platform.task.lifecycle inside nuxeo-platform-task-core-8.10.jar /OSGI-INF/task-lifecycle-contrib.xml

Extension Point

Extension point lifecycle of component LifeCycleService.

Contributed Items

  • <lifecycle defaultInitial="opened" name="task">
          <transitions>
            <transition destinationState="ended" name="end">
              <description>End the task</description>
            </transition>
            <transition destinationState="cancelled" name="cancel">
              <description>Cancel the task</description>
            </transition>
          </transitions>
          <states>
            <state description="Task is open." name="opened">
              <transitions>
                <transition>end</transition>
                <transition>cancel</transition>
              </transitions>
            </state>
            <state description="task has been ended" name="ended">
            </state>
            <state description="Task is cancelled" name="cancelled">
            </state>
          </states>
        </lifecycle>

    Cancel the task

XML Source

<extension point="lifecycle" target="org.nuxeo.ecm.core.lifecycle.LifeCycleService">

    <lifecycle defaultInitial="opened" name="task">
      <transitions>
        <transition destinationState="ended" name="end">
          <description>End the task</description>
        </transition>
        <transition destinationState="cancelled" name="cancel">
          <description>Cancel the task</description>
        </transition>
      </transitions>
      <states>
        <state description="Task is open." name="opened">
          <transitions>
            <transition>end</transition>
            <transition>cancel</transition>
          </transitions>
        </state>
        <state description="task has been ended" name="ended">
        </state>
        <state description="Task is cancelled" name="cancelled">
        </state>
      </states>
    </lifecycle>

  </extension>